package com.mrzhou.gateway.props;

import com.mrzhou.core.tool.constants.TokenConstant;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@RefreshScope
@Component
@ConfigurationProperties(prefix = "cloud.secure")
public class AuthProperties {

    /**
     * jwt签名的key
     */
    private String jwtKey = TokenConstant.SIGN_KEY;

    /**
     * 需要放行的url
     */
    private List<String> skipUrl = new ArrayList<>();

}
